package cn.fcq.ymcc.constants;

/**
 * 异常枚举类
 */
public enum YmccError {
    // 400
    NO_EMPTY_EMP_NAME("4001", "员工名字不能为空"),
    NO_EMPTY_EMP_EMAIL("4002", "邮件不能为空"),
    COMMON_PHONE_NO_EMPTY("4101", "手机号码不能为空"),
    COMMON_SERIOUS("4102", "请耐心稍等下"),
    COMMON_PHONE_ILLEGAL("4103", "手机号不合法"),
    USER_SMS_EMPTY("4201", "短信验证码失效"),
    USER_SMSCODE_NOT_EQUALS("4202", "短信验证码错误"),
    USER_EXISTS("4203", "用户名已存在"),

    COURSE_NOT_EXISTS("4202","课程不存在!"),
    COURSE_STATUS_ONLINE("4203","课程已上线,请勿重复上线!"),
    COURSE_STATUS_OFFLINE("4204","课程已下线,请勿重复下线!"),
    COURSE_TYPEDELETE_CODE("4205","该课程类型已删除"),
    COURSE_ASK_ILLEGAL("4206","请求非法");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    YmccError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}